package com.zhao.framework;

import java.lang.reflect.Type;

import org.codehaus.jackson.type.TypeReference;

/**
 * 
 * 方便直接指定parameteredType
 * @param <T>
 */
public class TypeRef<T> extends TypeReference<T> {
	Type type;
	protected TypeRef(Type type){
		this.type = type;
	}
	public Type getType(){
		return type;
	}
	public static TypeRef getTypeRef(Type type){
		return new TypeRef(type); 
	}
}
